Compiler Design


Q121.

In a resident-OS computer, which of the following systems must reside in the main memory under all situations?
GateOverflow

Q122.

Heap allocation is required for languages.
GateOverflow

Q123.

A language L allows declaration of arrays whose sizes are not known during compilation. It is required to make efficient use of memory. Which one of the following is true?
GateOverflow

Q124.

A linker is given object modules for a set of programs that were compiled separately. What information need to be included in an object module?
GateOverflow

Q125.

A part of the system software which under all circumstances must reside in the main memory is:
GateOverflow

Q126.

The process of assigning load addresses to the various parts of the program and adjusting the code and date in the program to reflect the assigned addresses is called
GateOverflow

Q127.

Choose the correct alternatives (more than one may be correct ) and write the corresponding letters only A "link editor" is a program that:
GateOverflow

Q128.

Which of the following statements is FALSE?
GateOverflow

Q129.

Consider the syntax directed translation given by the following grammar and semantic rules. Here N, I, F \; and \; B are non-terminals. N is the starting non-terminal, and \#,0 \; and \; 1 are lexical tokens corresponding to input letters "\#","0" \; and \; "1", respectively. X.val denotes the synthesized attribute (a numeric value) associated with a non-terminal X. I_1 and F_1 denote occurrences of I and F on the right hand side of a production, respectively. For the tokens 0 and 1, 0.val=0 and 1.val=1.The value computed by the translation scheme for the input string\begin{aligned} N & \rightarrow I \# F & N.val=I.val+F.val \\ I &\rightarrow I_1B & I.val = (2 I1.val) + B.val\\ I &\rightarrow B&I.val = B.val\\ F &\rightarrow BF_1& F.val = \frac{1}{2}(B.val + F1.val)\\ F &\rightarrow B& F.val = \frac{1}{2} B.val\\ B&\rightarrow 0& B.val = 0.val\\ B &\rightarrow 1&B.val = 1.val \end{aligned} 10\# 011is ____ (Rounded off to three decimal places)
GateOverflow

Q130.

Consider the following grammar and the semantic actions to support the inherited type declaration attributes. Let X_1,X_2,X_3,X_4,X_5 \; and \; X_6 be the placeholders for the non-terminals D, T, L or L_1 in the following table: Which one of the following are the appropriate choices for X_1,X_2,X_3 \; and \; X_4?
GateOverflow